cmake_minimum_required(VERSION 3.12)

project(CyberLicences)

#将当前项目名前的Cyber去掉，用于当前组件依赖库的存放文件夹的命名
string(REPLACE "Cyber" "" this_project_name ${PROJECT_NAME} )

set(CyberLicences_SOURCE_HEAD ${CMAKE_CURRENT_SOURCE_DIR}/include)
set(CyberLicences_SOURCE_CPP ${CMAKE_CURRENT_SOURCE_DIR}/src)
set(CyberLicences_DEPENDS_HEAD ${CMAKE_CURRENT_SOURCE_DIR}/depends/3rdParty/LicencesLib/include/)
set(CyberLicences_DEPENDS_LIB ${CMAKE_CURRENT_SOURCE_DIR}/depends/3rdParty/LicencesLib/lib/${USER_PLATFORM})


include_directories(
        ${CyberLicences_SOURCE_HEAD}
        ${CyberLicences_SOURCE_CPP}
        ${CyberLicences_DEPENDS_HEAD}
)

aux_source_directory(${CyberLicences_SOURCE_CPP} ALL_SRC)
#link_libraries(sts)

#生成动态库或静态库
add_library(CyberLicences SHARED ${ALL_SRC})
target_link_libraries(CyberLicences sts)
